package com.xxxx.service.impl;

import com.xxxx.dao.CompanyMapper;
import com.xxxx.pojo.Company;
import com.xxxx.service.CompanyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author Lionel
 * @Date 2021/3/11 16:10
 * Created by IntelliJ IDEA 2020.1.
 * Project: house
 * Description：
 */
@Service
public class CompanyServiceImpl implements CompanyService {

    @Autowired
    private CompanyMapper companyMapper;

    @Override
    public List<Company> getCompanyByStatus(int status) {
        return companyMapper.getCompanyByStatus(status);
    }

    @Override
    public Integer certifyCompany(Company company) {
        return companyMapper.certifyCompany(company);
    }

}
